package data {
	
	// Classe énumérative
	
	public class Elem {
		
		// Valeurs
		
		public static const AUCUN  : String = "Aucun";
		public static const SOIN   : String = "Soin";
		public static const NEUTRE : String = "Neutre";
		public static const TERRE  : String = "Terre";
		public static const FEU    : String = "Feu";
		public static const EAU    : String = "Eau";
		public static const AIR    : String = "Air";
		public static const POUSSE : String = "Poussée";
		public static const MULTI  : String = "Multiple";
		
		// Méthodes statiques publiques
		
		public static function getColor(elem : String) : String {
			var color : String = "#FFFFFF";
			if (elem == Elem.MULTI) {
				color = "#BB66FF";
			} else if (elem == Elem.SOIN) {
				color = "#FFAACC";
			} else if (elem == Elem.NEUTRE) {
				color = "#888888";
			} else if (elem == Elem.TERRE) {
				color = "#B07750";
			} else if (elem == Elem.FEU) {
				color = "#FF0000";
			} else if (elem == Elem.EAU) {
				color = "#33CCFF";
			} else if (elem == Elem.AIR) {
				color = "#66FF66";
			} else if (elem == Elem.POUSSE) {
				color = "#BB66FF";
			}
			return color;
		}
		
		public static function isDefined(elem : String) : Boolean {
			return (elem != Elem.AUCUN);
		}
		
	}
	
}